{% extends 'base.html' %}
{% block top %}
    <title>{{ code.name }}</title>
    {{ super() }}
{% endblock %}
{% block content %}
<body>
    <input type="hidden" name="point" value="{{ titles_id }}">
	<div class="container" style="">

		<div class="main" style="margin-top:20px">
		   <div class="row">
		   		<div class="list_item col-sm-push-3" style="background-color:#fff">
		   			<p class="item_title">{{ code.name }}</p>
		   			<ul class="item_detail">
                        {% for content in content_list %}
		   				<li class="row">
		   					<div class="col-sm-9"><a href="/v1.0/detail/{% if content.content_id %}{{ content.content_id }}{% else %}{{ content.md5 }}{% endif %}" class="red-point" id="{{ content.id}}">{{ content.title }}</a></div>
		   					<span class="col-sm-3">{{ content.update_time }}</span>
		   				</li>
                      {% endfor %}
		   			</ul>
                    <div class="show_more row">
		   				<a href="/v1.0/index">返回主页</a>
		   			</div>

		   		</div>

		   </div>


		</div>
	</div>
</body>
<script>
    var data=$("input[name='point']").val()
    $(".red-point").each(function () {
    var a=$(this).attr("id")
        if (data.indexOf(a)!= -1){
        $(this).removeAttr("class")
        }
    })
</script>
{% endblock %}



